import {combineReducers} from 'redux'
import {authReducers} from './auth'
import {errorReducers} from './error'

function createReducers(reducers: object) {
  return combineReducers({
    auth: authReducers,
    error: errorReducers,
    ...reducers,
  })
}

export {createReducers}
